#ifndef DBM_SERVER_H
#define DBM_SERVER_H
#include "dbm_conf.h"
#include "cmn/utils.h"
extern int timer_snapshoot;
//extern int timer_save_snap;

typedef void *(*dbm_event)(void *args);

extern pthread_mutex_t mutex_timer;


int dbm_start(); //start the dbm
int dbm_init();
int dbm_install();
int dbm_deamon();
int dbm_get_data();
int dbm_send_data();
int dbm_lsdb_handle();
int dbm_lidb_handle();
int dbm_pdb_handle();
int dbm_add_event(dbm_event call_event,void* args,long time);


#endif
